spin button: Make final
authorMatthias Clasen <mclasen@redhat.com>
Mon, 27 May 2019 03:22:47 +0000 (23:22 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 27 May 2019 03:22:47 +0000 (23:22 -0400)
gtk/gtkspinbutton.c
gtk/gtkspinbutton.h

index b038feb444bd0da6db87d3c7bd6ef2327447624b..edad0b3a619f7bc40a2b3ff528e7f7d183bf275a 100644 (file)
  * ]|
  */
 
+typedef struct _GtkSpinButton      GtkSpinButton;
+typedef struct _GtkSpinButtonClass GtkSpinButtonClass;
+
+struct _GtkSpinButton
+{
+  GtkWidget parent_instance;
+};
+
+struct _GtkSpinButtonClass
+{
+  GtkWidgetClass parent_class;
+
+  gint (*input)  (GtkSpinButton *spin_button,
+                  gdouble       *new_value);
+  gint (*output) (GtkSpinButton *spin_button);
+  void (*value_changed) (GtkSpinButton *spin_button);
+
+  /* Action signals for keybindings, do not connect to these */
+  void (*change_value) (GtkSpinButton *spin_button,
+                        GtkScrollType  scroll);
+
+  void (*wrapped) (GtkSpinButton *spin_button);
+};
+
 struct _GtkSpinButtonPrivate
 {
   GtkAdjustment *adjustment;
index d8457ab7ea5d7457e8d9304723223386df5c59d0..405fd6b5e96e932fd1e1df541d88432b0ea85ea2 100644 (file)
@@ -40,10 +40,7 @@ G_BEGIN_DECLS
 
 #define GTK_TYPE_SPIN_BUTTON                  (gtk_spin_button_get_type ())
 #define GTK_SPIN_BUTTON(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton))
-#define GTK_SPIN_BUTTON_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SPIN_BUTTON, GtkSpinButtonClass))
 #define GTK_IS_SPIN_BUTTON(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SPIN_BUTTON))
-#define GTK_IS_SPIN_BUTTON_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SPIN_BUTTON))
-#define GTK_SPIN_BUTTON_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButtonClass))
 
 /**
  * GTK_INPUT_ERROR:
@@ -97,41 +94,6 @@ typedef enum
 
 
 typedef struct _GtkSpinButton              GtkSpinButton;
-typedef struct _GtkSpinButtonClass         GtkSpinButtonClass;
-
-/**
- * GtkSpinButton:
- *
- * The #GtkSpinButton-struct contains only private data and should
- * not be directly modified.
- */
-struct _GtkSpinButton
-{
-  GtkWidget parent_instance;
-};
-
-struct _GtkSpinButtonClass
-{
-  GtkWidgetClass parent_class;
-
-  gint (*input)  (GtkSpinButton *spin_button,
-                 gdouble       *new_value);
-  gint (*output) (GtkSpinButton *spin_button);
-  void (*value_changed) (GtkSpinButton *spin_button);
-
-  /* Action signals for keybindings, do not connect to these */
-  void (*change_value) (GtkSpinButton *spin_button,
-                       GtkScrollType  scroll);
-
-  void (*wrapped) (GtkSpinButton *spin_button);
-
-  /* Padding for future expansion */
-  void (*_gtk_reserved1) (void);
-  void (*_gtk_reserved2) (void);
-  void (*_gtk_reserved3) (void);
-  void (*_gtk_reserved4) (void);
-};
-
 
 GDK_AVAILABLE_IN_ALL
 GType          gtk_spin_button_get_type           (void) G_GNUC_CONST;